import java.util.Arrays;
import java.util.Scanner;

public class C_2_6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int num = sc.nextInt();
            int[][] a = new int[11][11];
            int l = 5, f = 0;
            for (int i = 0; i < num; i++) {
                for (int j = 0; j < num; j++) {
                    a[i][j] = 0;
                }
            }
            a[0][0] = 1;
            for (int i = 1; i < num; i++) {
                for (int j = 0; j < num; j++) {
                    if(j==0){
                        a[i][j] = 1;
                    }else
                        a[i][j] = a[i-1][j-1]+a[i-1][j];
                }
            }
            int t = 2;
            for (int i = num-1; i >= 0; i--) {
                for (int j = 0; j < t; j++) {
                    System.out.print(' ');
                }
                t = t+3;
                for (int j = 0; j < num; j++) {
                    if (a[i][j]!=0){
                        if (j!=0)
                        for (int k = 0; k < 5; k++) {
                            System.out.print(' ');
                        }
                        System.out.print(a[i][j]);
                    }

                }
                System.out.println();
            }
            System.out.println();
        }
    }
}